﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="ThemCD.aspx.cs" Inherits="Admin_ThemCD" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" class="style3" width="800">
        <tr>
            <td align="left" style="width: 128px; height: 22px;">
                &nbsp;</td>
            <td align="left" style="height: 22px">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px; height: 22px;">
                Tên&nbsp; phim :</td>
            <td align="left" style="height: 22px">
                <asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="Phải nhập tên phim">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Loại CD :</td>
            <td align="left">
                <asp:DropDownList ID="DropDownList1" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Loại phim :</td>
            <td align="left">
                <asp:DropDownList ID="DropDownList2" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Diễn viên :</td>
            <td align="left">
                <asp:TextBox ID="TextBox2" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="Phải nhập diễn viên">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Số tập :</td>
            <td align="left">
                <asp:TextBox ID="TextBox3" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="TextBox3" Display="Dynamic" 
                    ErrorMessage="Phải nhập số tập">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToValidate="TextBox3" ErrorMessage="Số phải lớn hơn 1" 
                    Operator="GreaterThan" ValueToCompare="1">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Số bản sao :</td>
            <td align="left">
                <asp:TextBox ID="TextBox4" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="TextBox4" Display="Dynamic" 
                    ErrorMessage="Phải nhập số bản sao">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToValidate="TextBox4" Display="Dynamic" 
                    ErrorMessage="Số phải lớn hơn 1" Operator="GreaterThan" ValueToCompare="1">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Hình Ảnh :</td>
            <td align="left">
                <input id="File1" type="file" runat="server" /><asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator5" runat="server" ControlToValidate="File1" 
                    ErrorMessage="Phải chọn hình ảnh">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Nội dung :</td>
            <td align="left">
                <asp:TextBox ID="TextBox5" runat="server" Height="250px" TextMode="MultiLine" 
                    Width="500px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="TextBox5" ErrorMessage="Nhập nội dung phim">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Năm sản xuất :</td>
            <td align="left">
                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="TextBox6" Display="Dynamic" 
                    ErrorMessage="Nhập năm sản xuất">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator3" runat="server" 
                    ControlToValidate="TextBox6" Display="Dynamic" 
                    ErrorMessage="Năm từ 1900 đến 2011" Operator="GreaterThanEqual" 
                    ValueToCompare="1900">*</asp:CompareValidator>
                <asp:CompareValidator ID="CompareValidator4" runat="server" 
                    ControlToValidate="TextBox6" Display="Dynamic" 
                    ErrorMessage="Năm từ 1900 đến 2011" Operator="LessThan" ValueToCompare="2011">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 128px">
                Quốc gia:</td>
            <td align="left">
                <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="TextBox8" ErrorMessage="Nhập quốc gia">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 128px">
                &nbsp;</td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="Thêm" onclick="Button1_Click" />
            &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnHuy" runat="server" Text="Hủy" Width="46px" 
                    CausesValidation="False" />
            </td>
        </tr>
    </table>
</asp:Content>

